package test;

public class HierarchyTest2 {

    void fun() {
        System.out.println("HierarchyTest2.fun");
    }

    void fun2() {
        fun();
    }

    private static class A extends HierarchyTest2 {
        @Override
        void fun() {
            System.out.println("A.fun");
        }
    }

    public static void main(String[] args) {
        HierarchyTest2 t = new A();
        t.fun2();
    }
}
